<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author WeiXiaoJin
@since 2020-01-30 07:28:26
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">api链接</label>
	<div class="col-md-9">
				<input class="form-control" id="url" type="text" name="url" placeholder="api链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input"> 请求方式</label>
	<div class="col-md-9">
				<input class="form-control" id="method" type="text" name="method" placeholder=" 请求方式">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">参数列表</label>
	<div class="col-md-9">
				<input class="form-control" id="param" type="text" name="param" placeholder="参数列表">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求参数备注</label>
	<div class="col-md-9">
				<input class="form-control" id="paramRemark" type="text" name="paramRemark" placeholder="请求参数备注">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求示例</label>
	<div class="col-md-9">
				<input class="form-control" id="requestExam" type="text" name="requestExam" placeholder="请求示例">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">返回参数说明</label>
	<div class="col-md-9">
				<input class="form-control" id="responseParam" type="text" name="responseParam" placeholder="返回参数说明">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">接口错误码列表</label>
	<div class="col-md-9">
				<input class="form-control" id="errorList" type="text" name="errorList" placeholder="接口错误码列表">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">正确返回示例</label>
	<div class="col-md-9">
				<input class="form-control" id="trueExam" type="text" name="trueExam" placeholder="正确返回示例">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">错误返回示例</label>
	<div class="col-md-9">
				<input class="form-control" id="falseExam" type="text" name="falseExam" placeholder="错误返回示例">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">是否可用;0不可用；1可用;-1 删除</label>
	<div class="col-md-9">
				<input class="form-control" id="status" type="text" name="status" placeholder="是否可用;0不可用；1可用;-1 删除">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">所属模块ID</label>
	<div class="col-md-9">
				<input class="form-control" id="moduleId" type="text" name="moduleId" placeholder="所属模块ID">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">接口名</label>
	<div class="col-md-9">
				<input class="form-control" id="interfaceName" type="text" name="interfaceName" placeholder="接口名">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">remark</label>
	<div class="col-md-9">
				<input class="form-control" id="remark" type="text" name="remark" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">错误码、错误码信息</label>
	<div class="col-md-9">
				<input class="form-control" id="errors" type="text" name="errors" placeholder="错误码、错误码信息">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">updateBy</label>
	<div class="col-md-9">
				<input class="form-control" id="updateBy" type="text" name="updateBy" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">createTime</label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="createTime-3" 
			       name="createTime" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="createTime-3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">版本号</label>
	<div class="col-md-9">
				<input class="form-control" id="version" type="text" name="version" placeholder="版本号">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">排序，越大越靠前</label>
	<div class="col-md-9">
				<input class="form-control" id="sequence" type="text" name="sequence" placeholder="排序，越大越靠前">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">header</label>
	<div class="col-md-9">
				<input class="form-control" id="header" type="text" name="header" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">fullUrl</label>
	<div class="col-md-9">
				<input class="form-control" id="fullUrl" type="text" name="fullUrl" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">监控类型，多选：
Network("网络异常",1),Include("包含指定字符串",2),NotInclude("不包含指定字符串",3),NotEqual("不等于指定字符串",4);	
</label>
	<div class="col-md-9">
				<input class="form-control" id="monitorType" type="text" name="monitorType" placeholder="监控类型，多选：
Network("网络异常",1),Include("包含指定字符串",2),NotInclude("不包含指定字符串",3),NotEqual("不等于指定字符串",4);	
">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">监控比较内容</label>
	<div class="col-md-9">
				<input class="form-control" id="monitorText" type="text" name="monitorText" placeholder="监控比较内容">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorEmails</label>
	<div class="col-md-9">
				<input class="form-control" id="monitorEmails" type="text" name="monitorEmails" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">是否是模板</label>
	<div class="col-md-9">
				<input class="form-control" id="isTemplate" type="text" name="isTemplate" placeholder="是否是模板">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">projectId</label>
	<div class="col-md-9">
				<input class="form-control" id="projectId" type="text" name="projectId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">接口返回contentType</label>
	<div class="col-md-9">
				<input class="form-control" id="contentType" type="text" name="contentType" placeholder="接口返回contentType">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">contentType</label>
	<div class="col-md-9">
				<input class="form-control" id="contentType" type="text" name="contentType" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">createTime</label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="createTime-3" 
			       name="createTime" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="createTime-3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">errorList</label>
	<div class="col-md-9">
				<input class="form-control" id="errorList" type="text" name="errorList" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">falseExam</label>
	<div class="col-md-9">
				<input class="form-control" id="falseExam" type="text" name="falseExam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">fullUrl</label>
	<div class="col-md-9">
				<input class="form-control" id="fullUrl" type="text" name="fullUrl" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">interfaceName</label>
	<div class="col-md-9">
				<input class="form-control" id="interfaceName" type="text" name="interfaceName" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">isTemplate</label>
	<div class="col-md-9">
				<input class="form-control" id="isTemplate" type="text" name="isTemplate" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">moduleId</label>
	<div class="col-md-9">
				<input class="form-control" id="moduleId" type="text" name="moduleId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorEmails</label>
	<div class="col-md-9">
				<input class="form-control" id="monitorEmails" type="text" name="monitorEmails" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorText</label>
	<div class="col-md-9">
				<input class="form-control" id="monitorText" type="text" name="monitorText" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorType</label>
	<div class="col-md-9">
				<input class="form-control" id="monitorType" type="text" name="monitorType" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">paramRemark</label>
	<div class="col-md-9">
				<input class="form-control" id="paramRemark" type="text" name="paramRemark" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">projectId</label>
	<div class="col-md-9">
				<input class="form-control" id="projectId" type="text" name="projectId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">requestExam</label>
	<div class="col-md-9">
				<input class="form-control" id="requestExam" type="text" name="requestExam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">responseParam</label>
	<div class="col-md-9">
				<input class="form-control" id="responseParam" type="text" name="responseParam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">trueExam</label>
	<div class="col-md-9">
				<input class="form-control" id="trueExam" type="text" name="trueExam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">updateBy</label>
	<div class="col-md-9">
				<input class="form-control" id="updateBy" type="text" name="updateBy" placeholder="">
			</div>
</div>
																									</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
url: {required:true}
,method: {required:true}
,param: {required:true}
,paramRemark: {required:true}
,requestExam: {required:true}
,responseParam: {required:true}
,errorList: {required:true}
,trueExam: {required:true}
,falseExam: {required:true}
,status: {required:true}
,moduleId: {required:true}
,interfaceName: {required:true}
,remark: {required:true}
,errors: {required:true}
,updateBy: {required:true}
,createTime: {required:true,date:true}
,version: {required:true}
,sequence: {required:true}
,header: {required:true}
,fullUrl: {required:true}
,monitorType: {required:true,number:true}
,monitorText: {required:true}
,monitorEmails: {required:true}
,isTemplate: {required:true}
,projectId: {required:true}
,contentType: {required:true}
,contentType: {required:true}
,createTime: {required:true,date:true}
,errorList: {required:true}
,falseExam: {required:true}
,fullUrl: {required:true}
,interfaceName: {required:true}
,isTemplate: {required:true}
,moduleId: {required:true}
,monitorEmails: {required:true}
,monitorText: {required:true}
,monitorType: {required:true,number:true}
,paramRemark: {required:true}
,projectId: {required:true}
,requestExam: {required:true}
,responseParam: {required:true}
,trueExam: {required:true}
,updateBy: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"gateway/admin/gateLogger/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


